function sum(arr){
    // [1,2,3]
    return arr.reduce((pre,item)=>pre+item,0)
}

module.exports = sum;